package com.aaa.system.service;


import com.aaa.system.vo.DeptVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.aaa.entity.Dept;
import com.aaa.vo.Result;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 部门/科室表 服务类
 * </p>
 *
 * @author L
 * @since 2023-03-21
 */
public interface IDeptService extends IService<Dept> {

    public Result<List<Dept>> findAll();

    Result<IPage<Dept>> selectAll(Integer current, Integer size, DeptVo deptVo);

    Result<ArrayList<Long>> muldelDept(Long[] deptIds);

    Result<Boolean> saveOrUpdateDept(Dept dept);

    Result<Long[]> delDept(Long deptId);

    Dept getDeptById(Long deptId);

}
